package com.dz.xjd.app;

import android.app.Application;
import android.content.Context;
import android.content.res.Resources;

import com.dz.xjd.bean.UserBean;
import com.orhanobut.logger.Logger;

public class App extends Application {
    private static Context context;
    private static String TAG = "dz";

    private static String token = "Z8KUTGd0pL40daz2xOdOfIinvE4amn";

    public static UserBean mUserBean;

    @Override
    public void onCreate() {
        super.onCreate();
        Logger.init(TAG);
        this.context = this;
    }

    public static Context getAppContext(){
        return context;
    }

    public static Resources getAppResources() {
        return context.getResources();
    }

    public static void setToken(String mToken){
        token = mToken;
    }
    public static String getToken(){return token;}
}
